﻿using System.Drawing;
using System.Drawing.Drawing2D;
using System.Windows.Forms;

namespace YaP.Library.YapControls
{
    internal class MenuRenderer : ToolStripSystemRenderer
    {
        protected override void OnRenderToolStripBackground(ToolStripRenderEventArgs e)
        {
            e.Graphics.FillRectangle(new LinearGradientBrush(
                                         e.ToolStrip.ClientRectangle,
                                         SystemColors.ControlLightLight,
                                         SystemColors.ControlDark,
                                         92,
                                         true), e.AffectedBounds);
        }
    }
}